import json

with open("./index0.json", "r", encoding="utf-8") as f:
    content = f.read()
data = json.loads(content)
data_item = data["data"]["list"]

for item in data_item:
    # print(item)
    with open("result.txt", "a",encoding="utf-8") as t:
        t.write("时间: " + item["created_at"]+"\n")
        t.write("username: "+item["user"]["screen_name"]+"\n")
        # t.write("super_topic: "+ item["title_source"]["name"]+"\n") #item["topic_struct"][0]["topic_title"]+"\n")
        t.write("text_raw: "+item["text_raw"]+"\n")
        t.write("------------------\n")